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

/* 通用样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

/* 容器样式 */
.container-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.left-panel {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
}

.right-panel {
    flex: 2;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* 按钮样式 */
.btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(30, 60, 114, 0.1);
}

.btn:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(30, 60, 114, 0.2);
}

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

/* 结果显示区域 */
.result {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: block;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.result h3 {
    color: #1e3c72;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.loading {
    display: none;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.loading p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table, th, td {
    border: 1px solid #e9ecef;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e9f7fe;
    transition: background-color 0.3s ease;
}

/* 预格式化文本 */
pre {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 工具介绍区域 */
.tool-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-features {
    margin: 20px 0;
    padding-left: 20px;
}

.tool-features li {
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-main .container {
        flex-direction: column;
    }
    
    .left-panel {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .right-panel {
        flex: none;
        width: 100%;
    }
}

/* 顶部导航栏样式 */
.top-nav {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    position: relative;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu li a.current {
    background: rgba(255, 255, 255, 0.2) !important;
    font-weight: bold;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
    /* 添加一个透明的悬停区域，防止鼠标移动时菜单消失 */
    z-index: 1000;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 6px;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border: 1px solid #ddd;
    /* 添加一个透明的悬停区域，防止鼠标移动时菜单消失 */
    margin-top: 0;
    top: calc(100% - 0.25rem); /* 调整位置，减少与父菜单的间隙 */
}

.dropdown-content.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: #333 !important;
    padding: 0.75rem 1rem;
    text-decoration: none !important;
    display: block;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    border: none;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
    min-height: auto;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-content a:link,
.dropdown-content a:visited,
.dropdown-content a:hover,
.dropdown-content a:active {
    color: #333 !important;
    text-decoration: none !important;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.dropdown:hover .dropdown-content {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 保持对旧浏览器的兼容性 */
.dropdown-content:hover {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 确保下拉菜单的箭头在悬停时旋转 */
.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 修复下拉菜单在某些情况下的显示问题 */
.dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 999;
}

.dropdown > a {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-arrow {
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* 分类标题 */
.category-title {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    font-weight: bold;
    color: #1e3c72;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* 下拉菜单分节样式 */
.dropdown-section {
    padding: 0.5rem 0;
}

.section-title {
    padding: 0.5rem 1rem;
    font-weight: bold;
    color: #1e3c72;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.emoji {
    display: inline-block;
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

/* 工具推荐样式 */
.recommended-tools {
    padding: 0.5rem 0;
}

.recommended-title {
    padding: 0.5rem 1rem;
    font-weight: bold;
    color: #28a745;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* 页面头部样式 - 白色背景 */
.header {
    background: white;
    color: #333;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-title-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.header h1 {
    font-size: 2rem;
    margin: 0;
    color: #1e3c72;
    font-weight: bold;
}

.header p {
    font-size: 1.1rem;
    margin: 0;
    color: #666;
}

/* 面包屑导航 - 与头部合并 */
.breadcrumb {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #1e3c72;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 主容器 - 100% 宽度 */
.container-fluid {
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    width: 100%;
}

/* 主容器 - 标准宽度 */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 首页白色内容样式 */
.home-white-content {
    background: #f5f5f5;
    min-height: 100vh;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 白色内容包装器 */
.white-content-wrapper {
    background: white;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 90%; /* 使整体宽度接近100% */
}

/* 英雄区域 - 白色背景 */
.hero-section-white {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 两栏布局 - 各占50% */
.main-content-two-column {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    width: 100%;
}

.left-column, .right-column {
    width: calc(50% - 1rem); /* 各占50%宽度，减去gap的一半 */
    min-width: 0; /* 允许flex项目收缩小于其内容 */
}

/* 工具区域 - 白色背景 */
.tools-section-white {
    padding: 3rem 1rem;
    background: white;
    height: 100%;
}

.tools-section-white h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

.tool-card-large {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: white;
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-card-large h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #333;
}

.tool-card-large p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.tool-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
    align-self: center;
    font-size: 0.9rem;
}

.tool-link:hover {
    background: #2a5298;
    transform: scale(1.05);
}

/* 特性区域 - 白色背景 */
.features-section-white {
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    height: 100%;
}

.features-section-white h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.feature-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin: 0.8rem 0;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* 首页全宽度样式 */
.home-full-width {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 工具区域 */
.tools-section {
    padding: 3rem 1rem;
    background: white;
}

.tools-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 特性区域 */
.features-section {
    padding: 3rem 1rem;
    background: #f8f9fa;
}

.features-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 主容器 */
.container {
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 工具卡片 */
.tool-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tool-card h3 {
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.tool-card p {
    color: #666;
    line-height: 1.6;
}

/* 输入组 */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.2);
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* 小按钮样式 */
.btn-small {
    padding: 0.25rem 0.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.btn-small:hover {
    background: #5a6268;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #2a5298;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* 结果区域 */
.result {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.result pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.result-html {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 100px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    background: white;
    margin-top: 2rem;
}

/* 首页特殊样式 - 旧样式，保留兼容性 */
.home-body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-container {
    max-width: 800px;
    width: 90%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
}

.home-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.home-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.home-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.nav-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #fff;
}

.nav-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.nav-card a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.nav-card a:hover {
    background: #2a5298;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-nav {
        padding: 0.6rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-content {
        text-align: center;
    }
    
    .header-title-area {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .breadcrumb {
        display: block;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .home-header h1 {
        font-size: 2rem;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .white-content-wrapper {
        margin: 1rem;
        border-radius: 8px;
        width: calc(100% - 2rem); /* 移动端调整宽度 */
    }
    
    .hero-section-white {
        padding: 2rem 1rem;
    }
    
    .tools-section-white,
    .features-section-white {
        padding: 2rem 1rem;
    }
    
    /* 移动端取消两栏布局，改为单栏 */
    .main-content-two-column {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .left-column,
    .right-column {
        width: 100%;
    }
    
    .tool-container {
        flex-direction: column;
    }
    
    .tool-info,
    .tool-operation {
        min-width: unset;
        width: 100%;
    }
    
    .tool-container {
        flex-direction: column;
    }
    
    .tool-info,
    .tool-operation {
        min-width: unset;
        width: 100%;
        flex: none;
    }
}

.current-time-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.current-time-info p {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-actions {
    margin-top: 0.5rem;
    text-align: right;
}

.example-data {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #b8daff;
}

.example-data p {
    margin-bottom: 0.5rem;
    color: #004085;
}

/* 工具容器布局 */
.tool-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.tool-info {
    flex: 0 0 30%;
    min-width: 250px;
}

.tool-operation {
    flex: 0 0 70%;
    min-width: 300px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-container {
        flex-direction: column;
    }
    
    .tool-info,
    .tool-operation {
        min-width: unset;
        width: 100%;
        flex: none;
    }
}

/* 正则表达式测试工具样式 */
.regex-templates {
    margin-top: 1rem;
}

.template-group {
    margin-bottom: 1.5rem;
}

.template-group h4 {
    margin-bottom: 0.5rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3rem;
}

.template-group ul {
    list-style: none;
    padding: 0;
}

.template-group li {
    margin-bottom: 0.5rem;
}

.template-item {
    display: inline-block;
    background: #e9ecef;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.template-item:hover {
    background: #dee2e6;
    color: #000;
}

.highlighted-text {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.highlighted-text mark {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.3rem;
}

/* 结果样式 */
.result-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.result-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.result-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.result-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.result-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.result-text {
    flex: 1;
}

.result-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.result-text li {
    margin-bottom: 0.3rem;
}

/* 进制转换工具样式 */
.input-group input[type="text"] {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* API测试工具样式 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.response-status {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.response-headers {
    margin-bottom: 1rem;
}

.response-headers ul {
    list-style: none;
    padding-left: 0;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.response-headers li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #e9ecef;
}

.response-headers li:last-child {
    border-bottom: none;
}

#response-body {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #007bff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 文本处理工具样式 */
.tool-content {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.feature-description {
    flex: 0 0 30%;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: fit-content;
}

.feature-description h3 {
    color: #1e3c72;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.feature-description ul {
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
}

.feature-description li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tips {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.tips h4 {
    margin-top: 0;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.tips ul {
    margin-bottom: 0;
}

.tips li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #555;
}

.tool-operation {
    flex: 0 0 70%;
}

.translation-options {
    margin-bottom: 1rem;
}

.select-group {
    display: flex;
    gap: 1rem;
}

.select-group > div {
    flex: 1;
}

.select-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.select-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.split-options {
    margin-bottom: 1.5rem;
}

.split-results {
    min-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
    max-height: 400px;
    overflow-y: auto;
}

.segment {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
}

.segment-header {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eee;
}

.segment-content {
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.keywords-container {
    min-height: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-item {
    display: inline-block;
    background: #1e3c72;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.no-keywords {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.no-results {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.button-group {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tool-content {
        flex-direction: column;
    }
    
    .feature-description,
    .tool-operation {
        flex: none;
        width: 100%;
    }
    
    .select-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn-secondary {
        width: 100%;
    }
}

/* 针对Element UI字体加载失败的修复 - 使用备用图标字体 */
@font-face {
    font-family: 'element-icons';
    src: url('./fonts/element-icons.woff') format('woff'),
         url('./fonts/element-icons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 使用备用字体而不等待加载 */
}

/* 如果字体文件不存在，使用备用字体 */
[class*=" el-icon-"],[class^=el-icon-] {
    font-family: element-icons, "Glyphicons Halflings", sans-serif !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: baseline;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 为常用图标提供伪元素内容作为后备 */
.el-icon-search::before { content: "🔍"; }
.el-icon-edit::before { content: "✏️"; }
.el-icon-delete::before { content: "🗑️"; }
.el-icon-plus::before { content: "+"; }
.el-icon-minus::before { content: "-"; }
.el-icon-arrow-up::before { content: "↑"; }
.el-icon-arrow-down::before { content: "↓"; }
.el-icon-arrow-left::before { content: "←"; }
.el-icon-arrow-right::before { content: "→"; }
.el-icon-check::before { content: "✓"; }
.el-icon-close::before { content: "✕"; }
.el-icon-loading { -webkit-animation: rotating 2s linear infinite; animation: rotating 2s linear infinite; }

/* 为图标添加备用样式 */
.el-icon-loading {
    -webkit-animation: rotating 2s linear infinite;
    animation: rotating 2s linear infinite;
}

@-webkit-keyframes rotating {
    0% {
        -webkit-transform: rotateZ(0);
        transform: rotateZ(0);
    }
    100% {
        -webkit-transform: rotateZ(360deg);
        transform: rotateZ(360deg);
    }
}

@keyframes rotating {
    0% {
        -webkit-transform: rotateZ(0);
        transform: rotateZ(0);
    }
    100% {
        -webkit-transform: rotateZ(360deg);
        transform: rotateZ(360deg);
    }
}

/* 文本工具通用样式 */
.button-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.action-btn {
    padding: 0.8rem 2rem !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    min-width: 180px !important;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.icon-btn {
    padding: 0.6rem 1.2rem !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: all 0.3s ease !important;
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 特定工具按钮样式 */
.grammar-check-btn {
    background: #28a745 !important;
    color: white !important;
}

.grammar-check-btn:hover {
    background: #218838 !important;
}

.translate-btn {
    background: #17a2b8 !important;
    color: white !important;
}

.translate-btn:hover {
    background: #138496 !important;
}

.keyword-btn {
    background: #6f42c1 !important;
    color: white !important;
}

.keyword-btn:hover {
    background: #5a32a3 !important;
}

.split-btn {
    background: #fd7e14 !important;
    color: white !important;
}

.split-btn:hover {
    background: #e06c0e !important;
}

.result-container {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
    margin-bottom: 0.8rem;
}

.result-container:hover {
    border-color: #1e3c72;
}

.result-container textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: vertical;
    min-height: 150px;
    margin-bottom: 0;
}

/* 适用于关键词提取和文本分割的结果容器 */
.result-container .keywords-container,
.result-container .split-results {
    width: 100%;
    border: none;
    background: transparent;
    min-height: 150px;
    margin-bottom: 0;
}

/* 测试数据按钮样式 */
.test-data-btn {
    background: #ffc107 !important;
    color: #212529 !important;
    margin-bottom: 1rem;
}

.test-data-btn:hover {
    background: #e0a800 !important;
}

/* 密码生成器专用样式 */
.password-display {
    width: 100%;
    margin-top: 15px;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.password-input-container input {
    flex: 1;
    padding: 12px 45px 12px 12px; /* 为按钮留出空间 */
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: monospace; /* 使用等宽字体，方便查看密码 */
    min-height: 46px;
}

.password-input-container input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.toggle-visibility-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.toggle-visibility-btn:hover {
    background-color: #f0f0f0;
}

.password-strength-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.password-strength {
    font-weight: bold;
    min-width: 100px;
    transition: color 0.3s ease;
}

.password-strength-bar {
    flex: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #6c757d;
    transition: width 0.5s ease, background-color 0.3s ease;
    border-radius: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .password-strength-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .password-strength-bar {
        width: 100%;
    }
}

/* 个税社保计算器样式 */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.input-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.input-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.insurance-rates-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.rate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rate-item label {
    margin-right: 10px;
    white-space: nowrap;
}

.result-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.result-row.header {
    font-weight: bold;
    background-color: #f1f3f5;
}

.result-row.highlight {
    font-weight: bold;
    background-color: #e9ecef;
}

.result-col {
    text-align: right;
    padding: 0 5px;
}

.result-col:first-child {
    text-align: left;
}

.tax-breakdown, .final-result {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.tax-breakdown p, .final-result p {
    margin: 8px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .result-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .result-col {
        text-align: left;
        padding: 5px 0;
    }
    
    .result-col:not(:first-child):before {
        content: "个人: ";
        display: inline-block;
        width: 60px;
    }
}

/* 友情链接整体样式 */
.link-section {
  margin: 30px 0;
  padding: 15px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* 标题 */
.link-title {
  font-size: 16px;
  color: #333;
  margin: 0 0 12px 0;
  font-weight: 600;
}

/* 链接列表 - 横向排列 */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* 单个链接 */
.link-list li {
  margin: 0;
}

/* 链接文字样式 */
.link-list a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* 鼠标悬停效果 */
.link-list a:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* 返回顶部按钮样式 */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #409eff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top-btn:hover {
    background: #337ecc;
    transform: translateY(-2px);
}

/* 首页游戏应用区块样式 */
.section-wrapper {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    color: #333;
    margin: 0;
    font-size: 1.25rem;
}

.view-more {
    color: #409eff;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-more:hover {
    text-decoration: underline;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background: #f9f9f9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
}

.item-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.item-info {
    text-align: center;
    width: 100%;
}

.item-name {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-meta {
    color: #999;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
