/* 首页样式 - 简化版 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Logo样式 */
.logo-section {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 语言选择器样式 */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.language-selector select {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.language-selector select:hover {
    border-color: #3171f2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.language-selector select:focus {
    border-color: #3171f2;
    box-shadow: 0 0 0 2px rgba(49, 113, 242, 0.2);
}

.language-selector select option {
    padding: 10px;
    background-color: white;
    color: #333;
}

.language-selector select option:hover {
    background-color: #f5f5f5;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* 菜单栏样式 */
.menu-bar {
    background-color: #3171f2;
    color: white;
    height: 40px;
    position: relative;
    z-index: 999;
    overflow: visible;
}

.menu-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 桌面菜单 */
.menu-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    flex: 1;
}

.menu-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.menu-links li {
    margin-right: 20px;
    display: inline-block;
}

.menu-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    display: block;
}

.menu-links a:hover {
    text-decoration: underline;
}

/* 菜单折叠按钮 */
.menu-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 5px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    background-color: #4780f4;
    border-radius: 4px;
}

.toggle-icon {
    position: relative;
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.toggle-icon:before,
.toggle-icon:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.toggle-icon:before {
    top: -6px;
}

.toggle-icon:after {
    bottom: -6px;
}

/* 下拉菜单 */
.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #3171f2;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-links li {
    width: 100%;
}

.dropdown-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding: 10px 20px;
    transition: background-color 0.2s;
}

.dropdown-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    /* 减少菜单项间距以便显示更多项目 */
    .menu-links li {
        margin-right: 15px;
    }
    
    /* 为按钮留出空间 */
    .menu-wrapper {
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
  
    
    .menu-wrapper {
        padding-right: 0;
    }
}

/* 展开状态样式 */
.menu-dropdown.open {
    display: block !important;
}

.menu-toggle.open .toggle-icon {
    background-color: transparent;
}

.menu-toggle.open .toggle-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.open .toggle-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* 工具容器样式 */
.tools-container {
    width: 100%;
    padding: 15px 0;
}

/* 工具主体样式 */
.tool-main {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* 工具大标题样式 - SEO优化 */
.tool-big-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
}

/* 响应式标题样式 */
@media (max-width: 768px) {
    .tool-big-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .tool-big-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* 页面通知样式 */
.notification {
    position: fixed;
    top: 50px;
    right: 20px;
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* 复制按钮悬停效果 */
.copy-button:hover {
    background-color: #29b6f6;
}

.input-section,
.output-section {
    width: 100%;
    margin-bottom: 20px;
}

.input-section label,
.output-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-section textarea,
.output-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.input-section textarea:focus,
.output-section textarea:focus {
    outline: none;
    border-color: #3171f2;
}

.button-group {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button-group button {
    padding: 10px 20px;
    background-color: #3171f2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-group button:hover {
    background-color: #2962d2;
}

.output-section {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 40px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}

.copy-button:hover {
    background-color: #0b7dda;
}

/* 工具介绍部分样式 */
.tool-about {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.tool-about h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.tool-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* 相关工具部分样式 */
.related-tools {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
}

.related-tools h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.related-tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.related-tool-item {
    padding: 12px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.related-tool-item:hover {
    border-color: #3171f2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related-tool-item a {
    color: #3171f2;
    text-decoration: none;
    font-size: 14px;
    display: block;
    text-align: center;
}

.related-tool-item a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-about,
    .related-tools {
        margin: 20px auto;
        padding: 15px;
    }
    
    .related-tools-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .tool-about h2,
    .related-tools h2 {
        font-size: 16px;
    }
}

/* 工具类别样式 */
.tool-category {
    margin-bottom: 20px;
}

.tool-category h2 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* 工具列表样式 */
.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.tool-link {
    color: #3171f2;
    text-decoration: none;
    font-size: 14px;
    padding: 2px 0;
}

.tool-link:hover {
    text-decoration: underline;
}

/* 底部样式 */
footer {
    margin-top: 20px;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.footer-content {
    text-align: center;
}

.footer-info {
    margin-bottom: 10px;
}

.footer-info p {
    font-size: 13px;
}

.footer-links {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a {
    color: #3171f2;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 12px;
    color: #666;
}