/* 工具箱页面特定样式 */
.tools-header {
    background: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.tools-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tools-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.tools-section {
    padding: 80px 0;
    background-color: white;
}

.tools-section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #457b9d;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center;
}

.tool-card {
    width: 100%;
    max-width: 350px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8dadc 0%, #457b9d 100%);
    color: white;
    font-size: 3rem;
}

.tool-content {
    padding: 25px;
}

.tool-content h3 {
    font-size: 1.5rem;
    color: #1d3557;
    margin-bottom: 15px;
}

.tool-content p {
    color: #555;
    margin-bottom: 20px;
}

.tool-actions {
    display: flex;
    justify-content: center;
}

.tool-btn {
    padding: 10px 20px;
    background-color: #457b9d;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.tool-btn:hover {
    background-color: #1d3557;
    transform: translateY(-2px);
}

/* 工具模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    font-size: 1.8rem;
    color: #1d3557;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e63946;
}

/* 时钟工具样式 */
#clock-tool {
    text-align: center;
    padding: 20px;
}

#clock-display {
    font-size: 3rem;
    font-weight: bold;
    color: #1d3557;
    margin-bottom: 20px;
}

#date-display {
    font-size: 1.2rem;
    color: #457b9d;
    margin-bottom: 30px;
}

#fullscreen-btn {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#fullscreen-btn:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

/* 进制转换器样式 */
#converter-tool {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.converter-input,
.converter-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.converter-input label,
.converter-output label {
    font-weight: bold;
    color: #1d3557;
}

.converter-input select,
.converter-output select,
.converter-input input,
.converter-output input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tools-header h1 {
        font-size: 2.5rem;
    }
    
    .tools-section h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    #clock-display {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .tools-header h1 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    #clock-display {
        font-size: 2rem;
    }
}

/* 倒计时工具样式 */
#countdown-tool {
    text-align: center;
    padding: 20px;
}

#countdown-display {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#countdown-tool input[type="number"] {
    width: 80px;
    padding: 10px;
}

#start-countdown,
#pause-countdown,
#reset-countdown {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#start-countdown {
    background-color: #457b9d;
    color: white;
}

#pause-countdown {
    background-color: #e63946;
    color: white;
}

#reset-countdown {
    background-color: #6c757d;
    color: white;
}

/* 简易计算器样式 */
#calculator-tool {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

#calculator-display {
    padding: 15px;
    font-size: 1.5rem;
    text-align: right;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#calculator-tool div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-btn {
    padding: 15px;
    font-size: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calc-btn:hover {
    background-color: #e9ecef;
}

.calc-btn.operator {
    background-color: #457b9d;
    color: white;
    border: none;
}

.calc-btn.operator:hover {
    background-color: #1d3557;
}

/* 文本编辑器样式 */
#text-editor-tool {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#text-editor-tool div:first-child {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#text-editor-tool button {
    padding: 8px 12px;
    background-color: #457b9d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#text-editor {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 200px;
}